export function order(list, goodlist,goods,index) {
	var orders = {
		shangtype: 0,
		indexx: null,
		priceindex: null
	};
	if (list[index].goodstype) {
		orders.shangtype = goodlist.findIndex(goods => goods.id === list[index].goodstype)
		orders.indexx = goodlist[orders.shangtype].info.findIndex(goods => goods.id === list[index].goodsId)
	} else orders.shangtype = 0
	orders.priceindex = index
	orders.indexx = index
	
	return orders
}
